using System;
using System.Collections.Generic;
using System.Text;
using Dominio;
using DAP;

namespace Presenters
{
    public class CompanyPresenter
    {
        private CompanyRepository repository;
        public CompanyPresenter()
        {
            repository = new CompanyRepository();
        }

        public Company getCompanyByID(int id)
        {
            return repository.getCompanyById(id);
        }

        public void UpdateCompany(Company company)
        {
            repository.saveOrUpdateCompany(company);
        }
    }
}
